<?php
namespace Home\Controller;
use Think\Controller;
class UController extends CommonController {
    public function index(){
    	$id = I('get.uid');
    	$sql ="select * from user where id='{$id}'";
    	$user = current(M()->query($sql));
    	$this->assign('title',$user['nikename']."个人中心");
        $this->display();
    }
}